feat: enhance touch drag support for QML windows in qt6 #286
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
tracking
validation
positions
The changes enable proper touch-based window dragging for QML-based
applications while maintaining existing mouse drag functionality. The
implementation tracks touch grabber states to determine if QML items
have handled the touch events, and only initiates window dragging when
no QML items have claimed the touch points. The multi-screen support
ensures correct behavior across different display configurations.
feat: 增强QML窗口的触摸拖拽支持
这些变更使得基于QML的应用程序能够正确支持触摸拖拽窗口,同时保留现有的鼠
标拖拽功能。实现通过跟踪触摸grabber状态来判断QML组件是否处理了触摸事件,
仅当没有QML组件处理时才启动窗口拖拽。多屏幕支持确保在不同显示配置下的正
确行为。
pms: BUG-309157